importJar('org.mongodb:mongo-java-driver:jar:3.10.2');

var JavaMongoClient = importClass("com.mongodb.MongoClient");

function MongoClient(host, port) {
    this.client = new JavaMongoClient(host, port);
    this.getDatabase = function (name) {
        return this.client.getDatabase(name);
    };
}
